import request from '@/utils/request'

// 查询合同约定列表
export function listAgree(query) {
  return request({
    url: '/basic/agree/list',
    method: 'get',
    params: query
  })
}

// 查询合同约定详细
export function getAgree(agreeId) {
  return request({
    url: '/basic/agree/' + agreeId,
    method: 'get'
  })
}

// 新增合同约定
export function addAgree(data) {
  return request({
    url: '/basic/agree',
    method: 'post',
    data: data
  })
}

// 修改合同约定
export function updateAgree(data) {
  return request({
    url: '/basic/agree',
    method: 'put',
    data: data
  })
}

// 删除合同约定
export function delAgree(agreeId) {
  return request({
    url: '/basic/agree/' + agreeId,
    method: 'delete'
  })
}
